home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _84E261E57A474617BC8F931D379B009E < prev    next >
Encoding:
Text File  |  2002-02-13  |  5.0 KB  |  251 lines

  1. {
  2.     \\ ADDBOT MENU
  3.  
  4.     menuDef 
  5.     {
  6.         name            "ingame_addbot"
  7.         visible            0
  8.         fullscreen        0
  9.         rect            192 50 228 123
  10.         disableColor    .36 .42 .24 1
  11.  
  12.         ////////////////////////////////////////////////////////////////////////
  13.         //  Dialog frame
  14.         ////////////////////////////////////////////////////////////////////////
  15.  
  16.         itemDef
  17.         {
  18.             name        window
  19.             style        WINDOW_STYLE_SHADER
  20.             rect        0 0 228 123
  21.             background    "gfx/menus/ingame/background.png"
  22.             visible        1
  23.             decoration
  24.         }
  25.  
  26.         itemDef
  27.         {
  28.             name        window
  29.             style        WINDOW_STYLE_SHADER
  30.             rect        -12 -10 16 16
  31.             background    "gfx/menus/ingame/frame_topleft.png"
  32.             visible        1
  33.             decoration
  34.         }
  35.  
  36.         itemDef
  37.         {
  38.             name        window
  39.             style        WINDOW_STYLE_SHADER
  40.             rect        0 -10 228 16
  41.             background    "gfx/menus/ingame/frame_top.png"
  42.             visible        1
  43.             decoration
  44.         }
  45.  
  46.         itemDef
  47.         {
  48.             name        window
  49.             style        WINDOW_STYLE_SHADER
  50.             rect        228 -10 16 16
  51.             background    "gfx/menus/ingame/frame_topright.png"
  52.             visible        1
  53.             decoration
  54.         }
  55.  
  56.         itemDef
  57.         {
  58.             name        window
  59.             style        WINDOW_STYLE_SHADER
  60.             rect        -12 123 16 16
  61.             background    "gfx/menus/ingame/frame_bottomleft.png"
  62.             visible        1
  63.             decoration
  64.         }
  65.  
  66.         itemDef
  67.         {
  68.             name        window
  69.             style        WINDOW_STYLE_SHADER
  70.             rect        0 123 228 16
  71.             background    "gfx/menus/ingame/frame_bottom.png"
  72.             visible        1
  73.             decoration
  74.         }
  75.  
  76.         itemDef
  77.         {
  78.             name        window
  79.             style        WINDOW_STYLE_SHADER
  80.             rect        228 123 16 16
  81.             background    "gfx/menus/ingame/frame_bottomright.png"
  82.             visible        1
  83.             decoration
  84.         }
  85.  
  86.         itemDef
  87.         {
  88.             name        window
  89.             style        WINDOW_STYLE_SHADER
  90.             rect        228 0 16 123
  91.             background    "gfx/menus/ingame/frame_right.png"
  92.             visible        1
  93.             decoration
  94.         }
  95.  
  96.         itemDef
  97.         {
  98.             name        window
  99.             style        WINDOW_STYLE_SHADER
  100.             rect        -12 0 16 123
  101.             background    "gfx/menus/ingame/frame_left.png"
  102.             visible        1
  103.             decoration
  104.         }
  105.  
  106.         itemDef 
  107.         {
  108.               name        botname_button
  109.             style        WINDOW_STYLE_FILLED
  110.              ownerdraw    UI_BOTNAME
  111.               rect        20 10 155 17 
  112.             text        "Name:"    
  113.               textalign    ITEM_ALIGN_RIGHT        
  114.               textalignx    45
  115.               textaligny    2
  116.             textfont    "small"
  117.             forecolor    .12 .14 .08 1
  118.             backcolor    0 0 0 0
  119.               visible        1 
  120.  
  121.             mouseEnter 
  122.             { 
  123.                 play "sound/misc/menus/hilite1.wav" ; 
  124.                 setitemcolor botname_button backcolor .12 .14 .08 1
  125.                 setitemcolor botname_button forecolor .49 .56 .27 1
  126.             }                 
  127.             mouseExit 
  128.             { 
  129.                 setitemcolor botname_button backcolor 0 0 0 0
  130.                 setitemcolor botname_button forecolor .12 .14 .08 1
  131.             }
  132.             action
  133.             {
  134.                 play "sound/misc/menus/select.wav" ; 
  135.             }
  136.         }
  137.  
  138.         itemDef 
  139.         {
  140.               name        team_button
  141.                type        ITEM_TYPE_MULTI
  142.             style        WINDOW_STYLE_FILLED
  143.             text        "Team:"    
  144.               rect        20 30 155 17 
  145.               textalign    ITEM_ALIGN_RIGHT        
  146.               textalignx    45
  147.               textaligny    2
  148.             textfont    "small"
  149.             forecolor    .12 .14 .08 1
  150.             backcolor    0 0 0 0
  151.               visible        1 
  152.             cvarTest    "g_gametype"
  153.             cvar        "ui_botteam"
  154.  
  155.             cvarStrList 
  156.             { 
  157.                 "Auto", "Auto", "Red", "Red", "Blue", "Blue"
  158.             }     
  159.             disableCvar 
  160.             { 
  161.                 "0" ; 
  162.                 "1" 
  163.             }     
  164.             mouseEnter 
  165.             { 
  166.                 play "sound/misc/menus/hilite1.wav" ; 
  167.                 setitemcolor team_button backcolor .12 .14 .08 1
  168.                 setitemcolor team_button forecolor .49 .56 .27 1
  169.             }                 
  170.             mouseExit 
  171.             { 
  172.                 setitemcolor team_button backcolor 0 0 0 0
  173.                 setitemcolor team_button forecolor .12 .14 .08 1
  174.             }
  175.             action
  176.             {
  177.                 play "sound/misc/menus/select.wav" ; 
  178.             }
  179.         }
  180.  
  181.         itemDef 
  182.         {
  183.               name        skill_button
  184.             style        WINDOW_STYLE_FILLED
  185.              ownerdraw    UI_BOTSKILL
  186.               rect        15 50 200 17 
  187.             text        "Skill:"
  188.               textalign    ITEM_ALIGN_RIGHT        
  189.               textalignx    50
  190.               textaligny    2
  191.             textfont    "small"
  192.             forecolor    .12 .14 .08 1
  193.             backcolor    0 0 0 0
  194.               visible        1 
  195.      
  196.             mouseEnter 
  197.             { 
  198.                 play "sound/misc/menus/hilite1.wav" ; 
  199.                 setitemcolor skill_button backcolor .12 .14 .08 1
  200.                 setitemcolor skill_button forecolor .49 .56 .27 1
  201.             }                 
  202.             mouseExit 
  203.             { 
  204.                 setitemcolor skill_button backcolor 0 0 0 0
  205.                 setitemcolor skill_button forecolor .12 .14 .08 1
  206.             }
  207.             action
  208.             {
  209.                 play "sound/misc/menus/select.wav" ; 
  210.             }
  211.            }
  212.  
  213.         itemDef 
  214.         {
  215.             name        addbot_button
  216.             style        WINDOW_STYLE_FILLED
  217.             type        ITEM_TYPE_BUTTON
  218.             rect        65 85 90 26
  219.             text        "Add Bot"
  220.             textalign    1
  221.             textalignx    45
  222.             textaligny    6
  223.             textfont    "small"
  224.             forecolor    .12 .14 .08 1
  225.             backcolor    0 0 0 0
  226.               visible        1 
  227.             border        1
  228.             bordercolor    0 0 0 1
  229.             
  230.             action 
  231.             { 
  232.                 play "sound/misc/menus/select.wav" ; 
  233.  
  234.                 uiScript addBot ; 
  235.                 uiScript closeingame 
  236.             }
  237.             mouseEnter 
  238.             { 
  239.                 play "sound/misc/menus/hilite1.wav" ; 
  240.                 setitemcolor addbot_button backcolor .12 .14 .08 1
  241.                 setitemcolor addbot_button forecolor .49 .56 .27 1
  242.             }                 
  243.             mouseExit 
  244.             { 
  245.                 setitemcolor addbot_button backcolor 0 0 0 0
  246.                 setitemcolor addbot_button forecolor .12 .14 .08 1
  247.             }
  248.         }
  249.     }
  250. }
  251.